﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Platform.ObjectModel.Validation;

namespace Platform.ObjectModel.Extended
{

	/// <summary>
	/// Realiza as atualizações no conjunto de documentos do sistema
	/// </summary>
	public class LibraryUpdater : LibraryPipeline
	{

		public LibraryUpdater( Library library, IValidatorFactory validator )
			: base( library, validator )
		{ }


		protected override void SaveDocuments( DocumentContext context )
		{
			this.Storage.InsertOrUpdate( context );
		}

	}

}
